<?php 
$id = $_POST["id"];
$ma = $_POST["maGV"];
$ten = $_POST["tenGV"];
$chuc = $_POST["chucDanh"];
$gioi = $_POST["gioiTinh"];
$email = $_POST["email"];
$sdt = $_POST["SDT"];
$nam = $_POST["namSinh"];
$bomon = $_POST["boMon"];

$sql = "UPDATE giang_vien SET maGV='$ma', tenGV='$ten', chucDanh='$chuc', gioiTinh='$gioi', email='$email', SDT='$sdt', namSinh='$nam', boMon='$bomon' where ID =".$id;
if(mysql_query($sql))
	echo "Sửa thành công";
else
	die(mysql_error());
?>